import axios from "axios";

//    "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwaG9uZSI6IjEzNjEyMzEyMzEwIiwiaWQiOjEyLCJleHAiOjE2NTk1Njc5ODMsImlhdCI6MTY1ODk2Nzk4M30.49lM5pJTMLTu98YAPz_nrE01-4wGDYocxpCdBPGH_es"
//配置请求头
axios.defaults.baseURL = "http://123.56.24.27:8085/";
axios.interceptors.request.use((config) => {
  const token =
    "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwaG9uZSI6IjEzNjEyMzEyMzEwIiwiaWQiOjEyLCJleHAiOjE2NTk1Njc5ODUsImlhdCI6MTY1ODk2Nzk4NX0.jW0cWDT8RHF_iykvkTkAnp8q5iUSAuDWKT3cvCEa8Kk";
  config.headers.Authorization = token;
  return config;
});

axios.interceptors.response.use((data) => {
  return data;
});

export default axios;
